﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinQProject.Repository;


namespace ServiceProject.EntityService
{
    //public class CityService:DataBaseProcessBase<City>
    //{
    //    public CityService(FarmacieDataClassesDataContext database) : base(database){}

    //    public IList<City> GetAllCity(bool? isActive)
    //    {
    //        if (isActive == null)
    //            return base.GetAll();
    //        return base.GetAll(c => c.IsActive == isActive);
    //    }

    //    public IList<City> GetCityByRegion(int regionId, bool? isActive)
    //    {
    //        if (isActive == null)
    //            return base.GetAll(r => r.RegionId == regionId);
    //        return base.GetAll(r => r.RegionId == regionId && r.IsActive == isActive);
    //    }
    //}
}
